package chapter06.E14;
import javax.swing.text.html.HTMLDocument;
import java.util.HashMap;
import java.util.Iterator;
import java.util.Set;
public class E14 {
    public static void main(String[] args) {
        HashMap map = new HashMap();
        map.put("202304010601","qiqi");
        map.put("202304010601","cheng");
        map.put("202304010602","wang");
        System.out.println(map);
        //取出Key值队列 用来迭代
        Set ks = map.keySet();
        Iterator it =ks.iterator();//抽出的Key队列有迭代器
        while (it.hasNext()){
            Object obj = it.next();
 //           System.out.println(obj);
            System.out.println("学号" +obj+":"+map.get(obj));
        }
    }
}
